package com.itheima.mapper;

import com.itheima.pojo.Brand;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import java.util.List;

@Repository
public interface BrandMapper {

    List<Brand> selectAll();

    int add(Brand brand);

    int deleteById(Integer id);

    int update(Brand brand);

    int deleteByIds(@Param("ids") int[] ids);

    List<Brand> selectPage(@Param("index") int index,@Param("pageSize") int pageSize);

    int selectPagecount();

    int selectPagecount2(@Param("brand") Brand brand);

    List<Brand> selectByPageAndCondition(@Param("index") int index,@Param("pageSize") int pageSize,@Param("brand") Brand brand);
}
